home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
BillBoot.sit
/
Bill Boot
/
source code
/
BillBootScri.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-06-27
|
548b
|
37 lines
/*
File: WinBootINIT.c
Contains: INIT loader mechanism for the winboot hack.
Written by: Eric Traut
Date: 6/25/97
*/
#include <Resources.h>
#include <Memory.h>
typedef void ResourceMainProc(void);
void
main(void)
{
Handle codeResource;
ResourceMainProc* mainEntry;
codeResource = Get1Resource('WnBt', 500);
if (codeResource == NULL)
DebugStr("\pCode resource not found");
DetachResource(codeResource);
MoveHHi(codeResource);
HLock(codeResource);
mainEntry = (ResourceMainProc*)*codeResource;
(*mainEntry)();
}